package com.atguigu.spzx.order.mapper;

import com.atguigu.spzx.model.entity.order.OrderItem;

import java.util.List;

/**
 * @author Mahone
 */
public interface OrderItemMapper {

    /**
     * 保存订单详情
     * @param orderItem
     */
    void insertOrderItem(OrderItem orderItem);

    /**
     * 根据订单id查询详情
     * @param id
     * @return
     */
    List<OrderItem> selectByOrderId(Long id);
}
